package com.contentteam.util.config.metadata;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.contentteam.util.config.PropertiesBasedObjectFactory;

/**
 * This Annotation should be used in Property-Objects to
 * 
 * 
 * @see PropertiesBasedObjectFactory
 * 
 * @author Andreas Siebert, contentteam AG (asiebert@contentteam.com)
 */
@Target({ TYPE }) @Retention(RUNTIME)
public @interface PropertiesFile {

	/**
	 * Classloader-Relative path to properties-file.
	 * @return Path to Property-File.
	 */
	String path() default "";

	Class<?> classpathOf( ) default PropertiesFile.class;
	
}
